package com.jackrain.nea.common;

import com.jackrain.nea.config.PropertiesConf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author wuwenxue
 * @date 2018/06/09
 **/
@Configuration
@Component
public class BtranEsName {


    @Autowired
    PropertiesConf proConfig;

    public String getIndex() {
        return proConfig.getProperty("TRANINDEX", "tran");
    }

    public String getPlantype() {
        return proConfig.getProperty("DL_B_TRAN_PLAN", "dl_b_tran_plan");
    }

    public String getOuttype() {
        return proConfig.getProperty("DL_B_TRAN_OUT", "dl_b_tran_out");
    }

    public String getIntype() {
        return proConfig.getProperty("DL_B_TRAN_IN", "dl_b_tran_in");
    }

    public String getStoretype() {
        return proConfig.getProperty("DL_B_TRAN_STORE", "cp_c_store");
    }


}
